from django.db import models


class User(models.Model):
    userName = models.CharField(max_length=24)
    password = models.CharField(max_length=16)
    phone = models.CharField(max_length=11, null=True)
    age = models.IntegerField(null=True)
    registerTime = models.DateTimeField(auto_now_add=True, null=True)  # 如果设置为自动设置时间，要添加可以为空，默认是不为空的
